﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PhilipService;

namespace PhilipSupport.Controls.MainControl
{
    public partial class UserComment : UserControl
    {
        private long ServiceId;

        public UserComment(long serviceId, string comment)
        {
            InitializeComponent();
            ServiceId = serviceId;
            tb_comment.Text = comment;
        }

        private void panel_Paint(object sender, PaintEventArgs e)
        {
            var pen = new Pen(Color.LightGray);
            e.Graphics.DrawLine(pen, new Point(0, 0), new Point(panel.Width, 0));
            e.Graphics.DrawLine(pen, new Point(panel.Width - 1, 0), new Point(panel.Width - 1, panel.Height - 1));
            e.Graphics.DrawLine(pen, new Point(0, panel.Height - 1), new Point(panel.Width - 1, panel.Height - 1));
            e.Graphics.DrawLine(pen, new Point(0, panel.Height - 1), new Point(0, 0));
        }

        private void btn_save_Click(object sender, EventArgs e)
        {
            PhilipContext.supportMain.RemoveControl();
        }
    }
}
